package com.lancoo.klgcourseware.ui.fragment.operate;

import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.lancoo.klgcourseware.R;
import com.lancoo.klgcourseware.base.BaseKlgFragment;
import com.lancoo.klgcourseware.utils.KlgToolUtils;

/**
 * Created by pengmi on 2019/8/27 20:28
 * Description:侧滑切训练环节
 */
public class AlertSlideOperateFragment extends AlertBaseFragment {

    @Override
    protected int getContentViewId() {
        return R.layout.klg_fragment_alert_slide;
    }

    @Override
    protected void initView(View view) {
        ImageView img_pause = view.findViewById(R.id.img_pause);
        RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) img_pause.getLayoutParams();
        int topMargin= KlgToolUtils.dip2px(getContext(),KlgToolUtils.isPad(getContext())?13:9);
        layoutParams.topMargin= topMargin+KlgToolUtils.getStatusHeight(getContext());
        img_pause.setLayoutParams(layoutParams);

    }
}
